import 'package:fish_redux/fish_redux.dart';

enum SearchViewAction {
  action,
  onSearch,
  onClear,
  onGetHistoryList,
}

class SearchViewActionCreator {
  static Action onAction() {
    return const Action(SearchViewAction.action);
  }

  static Action onClear() {
    return const Action(SearchViewAction.onClear);
  }

  static Action onGetHistoryList(list) {
    return Action(SearchViewAction.onGetHistoryList, payload: list);
  }

  static Action onSearch(value) {
    return Action(SearchViewAction.onSearch, payload: value);
  }
}
